class UrlMappings {
    static mappings = {
      //API Rest
      "/market/buy/$code"{
          domain = "product"
          action = "buy"
	  controller = "marketBuy"
          format = "xml"
          }
      "/market/xml/product/findByName/$name?"{
          domain = "product"
          action = "findByName"
	  controller = "marketBuy"
          format = "xml"
          }
      "/market/registry"{
          action = "registry"
	  controller = "providerRegistry"
       }
      "/$controller/$action?/$id?"{
	      constraints {
			 // apply constraints here
		  }
	  }
      "/"(view:"/index")
	  "500"(view:'/error')
	}
}
